/*
 * Class created by lensfrex.
 */

package net.lensfrex.dscape.web.controllers.user;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import net.lensfrex.dscape.domain.response.Response;
import net.lensfrex.dscape.domain.response.data.user.LoginResponseData;
import net.lensfrex.dscape.domain.response.data.user.RegisterResponseData;
import org.springframework.web.bind.annotation.*;

@JsonSerialize(using = ToStringSerializer.class)
@RestController
@RequestMapping("/user")
public class User {

    @PostMapping(value = "/login" , produces = "application/json")
    public Response login(@RequestBody String body) {
        return Response.error(0, "Not implement");
    }

    @PostMapping(value = "/register", produces = "application/json")
    public Response register(@RequestBody String body) {
        return Response.error(0, "Not implement");
    }

    @PostMapping(value = "/modifyPassword/{uid}", produces = "application/json")
    public Response modifyPassword(@RequestBody String body, @PathVariable String uid,
                                   @RequestHeader String token) {
        return Response.error(0, "Not implement");
    }
}
